<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<input type = "hidden" name = "navTabId" id = "navTabId" value="${navTabId }" />
<div class="pageContent">
		<div class="pageFormContent" layoutH="80">
		<div class="tip"><span>资产基本信息</span></div><div>
			<p>
				<label>名称：</label>
				<input value="${assetInfo.name}" type="text" size="30" readonly="readonly"/>
				
			</p>
			<p>
				<label>型号：</label>
				<input type="text" size="30"  value="${assetInfo.models}"   readonly="readonly"/>
			</p>
			<p>
				<label>设备序列号：</label>
				<input type="text" size="30"  value="${assetInfo.equipnumber} " readonly="readonly"/>
			</p>
			<p>
				<label>类型：</label>
				<input type="text" size="30"  value="<hpin:id2nameDB id='${assetInfo.type}' beanId='org.hpin.base.dict.dao.SysDictTypeDao'/> " readonly="readonly"/>
			</p>
			<p>
				<label>计量单位：</label>
				<input value="<hpin:id2nameDB id='${assetInfo.measure}' beanId='org.hpin.base.dict.dao.SysDictTypeDao'/>" type="text" size="30" readonly="readonly"/>
				
			</p>
			<p>
				<label>生产日期：</label>
				<input type="text" size="30"  value="<fmt:formatDate value='${assetInfo.producedate}' pattern='yyyy-MM-dd' /> " readonly="readonly"/>
			</p>
			<p>
				<label>金额：</label>
				<input type="text" size="30"  value="${assetInfo.money} " readonly="readonly"/>
			</p>
			<p>
				<label>供货单位：</label>
				<input type="text" size="30"  value="<hpin:id2nameDB id='${assetInfo.supplyunit}' beanId='org.hpin.asset.dao.SuppliersDao'/> " readonly="readonly"/>
			</p>
			<p>
				<label>状态：</label>
				<input type="text" size="30"  value="<hpin:id2nameDB id='${assetInfo.state}' beanId='org.hpin.base.dict.dao.SysDictTypeDao'/> " readonly="readonly"/>
			</p>
			<p>
				<label>生产单位：</label>
				<input type="text" size="30"  value="${assetInfo.produceunit} " readonly="readonly"/>
			</p>
			<p>
				<label>已使用年限：</label>
				<input type="text" size="30"  value="${assetInfo.usedyears} " readonly="readonly"/>
			</p>
			<p>
				<label>保修天数：</label>
				<input type="text" size="30"  value="${assetInfo.warrantydays} " readonly="readonly"/>
			</p>
			<p>
				<label>购买时间：</label>
				<input type="text" size="30"  value="<fmt:formatDate value='${assetInfo.buyTime}' pattern='yyyy-MM-dd' /> " readonly="readonly"/>
			</p>
			<p>
				<label>是否入驻：</label>
				<input type="text" size="30"  value="<hpin:id2nameDB id='${assetInfo.isIn}' beanId='org.hpin.base.dict.dao.SysDictTypeDao'/> " readonly="readonly"/>
			</p>
			<c:if test="${assetInfo.state =='1010105' }">
				<p>
				<label>借用人：</label>
				<input type="text" size="30"  value="${borrow.borrower}" readonly="readonly"/>
			</p>
			<p>
				<label>借用部门：</label>
				<input type="text" size="30"  value="<hpin:id2nameDB id='${borrow.deptId}' beanId='org.hpin.base.usermanager.dao.DeptDao'/> " readonly="readonly"/>
			</p>
			</c:if>
			<c:if test="${assetInfo.state == '1010102'&& assetInfo.isIn == '1010302'}">
			<p>
				<label>使用人：</label>
				<input type="text" size="30"  value="${assetInfo.principal}" readonly="readonly"/>
			</p>
			<p>
				<label>接收部门：</label>
				<input type="text" size="30"  value="<hpin:id2nameDB id='${assetInfo.department}' beanId='org.hpin.base.usermanager.dao.DeptDao'/> " readonly="readonly"/>
			</p>
			<p>
			 <label>存放地址：</label>
			 <input type="text" size="30"  value="${assetInfo.storageplace } " readonly="readonly"/>
			 </p>
			<p class="nowrap">
			 <label>派发备注：</label>
			 <textarea cols="35" rows="2"  style="width:570px;" readonly="readonly">${dis.remark }</textarea>
			 </p>
			</c:if>
			<p id="reamark" class="nowrap">
				<label>备注：</label>
				<textarea cols="35" rows="2" name="assetInfo.remark" style="width:570px;" readonly="readonly">${ assetInfo.remark }</textarea>
			</p>
			<c:if test="${assetInfo.state == '1010102'&& assetInfo.isIn == '1010301'}">
			 <p>
			 <label>公司名称：</label>
			 <input type="text" size="30"  value="${dis.company } " readonly="readonly"/>
			 </p>
			  <p>
			 <label>存放地址：</label>
			 <input type="text" size="30"  value="${assetInfo.storageplace } " readonly="readonly"/>
			 </p>
			 <p class="nowrap">
			 <label>入驻备注：</label>
			 <textarea cols="35" rows="2"  style="width:570px;" readonly="readonly">${dis.remark }</textarea>
			 </p>
   			</c:if>
   			<br />
   			<c:if test="${!empty upList}">
			<table width="100%" align="center">
 			<thead align="center">
   			<tr>
	   			<th>升级时间：</th>
	   			<th>升级缘由：</th>
	   			<th>升级内容：</th>
	   			
   			</tr>
   			</thead>
   			<tbody align="center">
   			<c:forEach items="${upList }" var="upGrade">
		   		<tr>
		   			<td><fmt:formatDate value='${upGrade.upgradeTime}' pattern='yyyy-MM-dd' /> </td>
		   			<td>${ upGrade.reason }</td>
		   			<td>${ upGrade.remark }</td>
		   		</tr>
		   		
		   </c:forEach>
		   </tbody>
		   </table>
			</c:if>
		</div>
		</div>
</div>
